<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<style>
.whole {
	width:100%; height:100%;
	left:0; top:0;
	border:0;
}
.posAb{
	position:absolute;
}
</style>
<script src=../objot1.js></script>

<body>
<div id=div style="float:left">
<button onclick="demoG.call(this,event)">get</button><br>
<button onclick="demoH.call(this,event)">http</button><br>
<button onclick="demoS.call(this,event)">set</button><br>
<button onclick="demoE.call(this,event)">eval</button><br>
</div>
<input id=url type=text size=60><br>
<textarea id=text rows=40 cols=50></textarea>
</body>
<script>

window.onerror = function(m,f,l){
	return alert(m + '\n' + $.throwStack(f, l)), true;
}

window.div = $id('div');
window.url = $id('url');
window.text = $id('text');
url.value = location.protocol + '//' + location.host + '/';

function demoG(){
	x.a2 = text.value;
	G = $get(z, demoG);
	text.value = G;
}
function demoH(){
	$http(url.value, 0, text.value, function (code, data) {
		$D.title = code + ' ' + data.length;
		text.value = U = data;
	});
}
function demoS(){
	S = $set(G);
	GG = $get(S, demoS);
	if (GG != G)
		$throw('error');
}
function demoE(event){
	eval(text.value);
}

function A(x) {
}
function B() {
	this.bb = 'bb';
}
function C() {
}

$class(false, 'A');
$class(false, 'B', A);
A.prototype.aa = 'aa';
$class.get(B, demoG, ['a1'], Object, null);

$class(false, 'C', B);
C.prototype.c = 'c';
x = new A();
y = new B();
z = new C();
y.a1 = '\tasdasdf';
y.a2 = true;
y.a3 = 34e-5;
y.a4 = null;
y.a5 = undefined;
y.a6 = [y, y.a1, y.a2, y.a3, y.a4, y.a5];
y.a6[6] = y.a6;
y.a7 = { x:x, xx:y.a6[0] };
y.a8 = y.a2;
z = [
y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,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